Merges an if-else-if statement into a single if statement if their bodies are identical.