nitvm: Factorize the loading of superclasses