Rearrange
Make variables in expressions with the same name share their id