Reduce use of parentheses when printing formulas