ATP-driven self-assembly of a morphogenetic protein in Bacillus subtilis.