Evolution in an ancient detoxification pathway is coupled with a transition to herbivory in the drosophilidae.