Rewrite identical projection expressions in terms of the same symbol