Refactor: Moved the EditMap class to edit_map.cpp; cleanup