Refactor markDuplicateFileShelfToShelfABExistences().