Richard Buggs isn’t saying anything about extant structures deriving from each other. He’s referencing Abby & Rocha (2012) showing that the injectisome (aka. the non-flagellar type III secretion system) evolved from a flagellum, not the other way around: