Created constant terminal node creator helper function