Get rid of unnecessary Id's.