On second look, `AbstractClassMetadataFactory::isTransient()` exists for this purpose. I'll see what I can do.