Updating curl adapter to use callable curl factories