It makes sense to think that the T3SS didn’t evolve into the bacterial flagellum, but that the bacterial flagellum shed some protein parts to become a T3SS.
The nature of the surveys to which Phil Halper appeals is that they measure what physicists believe. They cannot measure what the evidence actually supports.