Coordinating assembly of a bacterial macromolecular machine