By eating the invasive tree of heaven, lanternflies take in bitter compounds that help them fend off hungry birds.