Remove extraneous map elements