Take the node tree as an argument directly instead of retrieving it from the editor struct. Then use the utility function in two more places.
Take the node tree as an argument directly instead of retrieving it from the editor struct. Then use the utility function in two more places.