Remove unneeded transformations.