Remove if by moving its code to an analogous if