Removes unnecessary custom Set and Map types.