Refactor the map overlay.