Get rid of unnecessary mappings.