`metaclass` decorator code optimization