Rely on inheritance for building referenced classes.

This is better than forcing all subclasses to update when new types are referenced in super classes.
I think nested can be dropped here.