Instead of using a mapping table, have a LegacyID field on the imported object.
Also decided that we need to do more linking during the import, rather than just do it at the end. The 'linkPass' can just do all additional linking (many_many) that couldn't be done during the import.