Merge if statements with the enclosing one.