Active-site residues are critical for the folding and stability of methylamine dehydrogenase.