Fix removeEditorMetadata name and add comments