Brewer's staff worked on religious bill