Use primary keys for import ids where possible.