Move some methods around to make it clearer the split between FK and
join stores.
[NUCRDBMS-834] Change to index calculation that may affect exception
handling