Factoring out creating a unary syntax tree.