Move all curl functional to behavior