Condense some shared code
Major cleanup

First, remove Leftist and Rightist, because I hate them.

Then, create four helper functions, that SIGNIFICANTLY condense the code.