metaclass refactoring 1t stap