Metabolic novelty originating from horizontal gene transfer is essential for leaf beetle survival