Why fetching variant like this and not checking ` $item->getVariant()->getId() === $configuration['variant']`?

Simpler code and less dependencies (VariantRepository).