Remove the cutsie inheritance for similar AST nodes. This leads to a little more duplication, but the code is easier to understand.