Scientists used bacteria to turn waste into valuable chemicals now sourced from palm oil, offering a greener pathway.