Factor selectNodes and splitByNode out of aliasByNode and groupByNode
Add nodeArithmetic for aliasByNode and groupByNodes