Replace `case true...when` with equivalent `if...elsif` statements