Use VariantRepository to reduce SQL queries