Remove unneeded IDs and replace them by classes.