Reformat long if else chain with braces