Move ternary to more readable place.