Those old herbs and spices may seem destined for the garbage, but they can be extra helpful in managing pests when added to your compost pile.