Bifurcation drives the evolution of assembly-line biosynthesis