Remove unnecessary themes.