Minor refactoring to PlanNodeUtil