Evolutionary dynamics of natural product biosynthesis in bacteria.