Further merging the codes of bppAncestor and mapNH.