Merges an if-else statement with a nested if-else statement into one.