Remove insane double ternary operator

Ternary operators are fine, but putting one inside another
is hard to read and confusing.