Moved nDomain construction out of addNGramFactorFromNTuple