such neck flexion was so common in fossils that some scientists had formulated a theory to explain it , suggesting that the dinosaurs had become extinct because they had been poisoned by the evolving alkaloids in plants .