Bacterial flagellar apparatus biogenesis