Split NodeIndex into generic index and NodeIndex.