Move superclass_metadata checking into a single method