Remove conditional assignment
Refactor outputting similar nodes