refactored clone_recipe implementation