Clean up the recipe modification code.