Refactored methods used to build output kml