what was the primary purpose of the reformation