Factor selectNodes and splitByNode out of aliasByNode and groupByNode