Light refactoring in map editor view.