Call legacy SpacePen remove hooks before unmounting TextEditorComponent