This could could be run as part of the metadata preparation; this would simplify some thing in Quarkus.
Most importantly, it removes some code from SessionFactoryImpl which is large enough.