refactor EntityMetadataBuilder and remove HibernateMetadataFactory
revert HibernateMetadataFactory