Less get_class() and getClassMetadata calls