Cross-talk between bacterial two-component systems drives stepwise regulation of flagellar biosynthesis in swarming development.