More concise metaclass implementation