refac(_compat.py): move metaclass container name to variable