This is super hard to read and obscures coverage information.

Write some if statements, cover all the branches.