Refactor EditorUtils and AbstractEditorOperation