editor: move sector-specific code to module sector from module st