Factor out editor bindings