refactor code for magentoerpconnect_product_variant and magentoerpconnect_product_variant_price