Remove duplicate code in opt-init-editor.el