A more durable metaclass name extraction