Formation of organelle-like N2-fixing symbiosomes in legume root nodules is controlled by DMI2.