Merge if statement into the enclosing one.