Church, mosque, museum, tourist site. The layers of the Hagia Sophia (Aya Sofya) are many.