Remove obsolete classes.