[ALLI-2890] Changed deduplication to check format before anything else. This means that e.g. records with matching ISNB but different format won't be considered duplicates anymore.