[ENSCORESW-816] Patch attempting to fix reused contigs being destroyed as duplicates. Also formatting changes.