Replace repeated parameters in __quantity_instance__ with **kwargs