Renamed the redundancy removal code