Remove unused code from the theme classes.