Splits an else-if branch into an equivalent nested if-statement.