Preserve base class with metaclass