The building was built in 1846 and was last used in 2010