Clean up nasty FORTRAN-style if statements.