Previous commit moved most of this code into more general/generic utility functions, so we can use that in the Node Editor now.
Previous commit moved most of this code into more general/generic utility functions, so we can use that in the Node Editor now.