Remove duplicate classes.