Complex sentence: It replaced a former building at a different location, which was built in 1507 as a Catholic church.
Split into simpler sentences: It replaced a former building at a different location. The former building was built in 1507 as a Catholic church.