Refactored the "removing Ingredient logic" to a reusable common fuction