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