Refactoring of smart editor, smart editor matcher and smart spawnflags editor