Clean unneeded classes.