Replace the use of deprecated createFlexibleValue by createProductValue
Replace the use of deprecated getFlexibleRepository by getProductRepository