Cleaning up transaction node code

Consolidating transaction node generation logic.