Protein refolding is required for assembly of the type three secretion needle