Homogenization of ancient masonry buildings: A case study