Added recursive resolution of superclass factories