HMBS and autoimmune pancreatitis: Acute intermittent porphyria (AIP) results from a decreased activity of hepatic hydroxymethylbilane synthase (HMBS), the third enzyme in the heme biosynthetic pathway.