Clean out obsolete subclasses and similar.