VariantFactory replaces alleles indexes only if the allele is not the same as the current alternative