Separate SearchBoxController class which instance belongs to MapController. Separate methods to create / remove SearchBox from map for editor.