Removes unused classes.