Prettify ternary expressions