Explain the connection between religion and reforms made during the 1800s.