Even though it was already in place, I don't like the pattern of just passing arbitrary node attributes to the template. It violates the principles of DRY. Could you change to just access the node attributes directly in the template and remove the variables has entirely?