Refactoring in TerrainImporter