Refactored private functions in MindMapInterface.