HMBS and autoimmune pancreatitis: In acute intermittent porphyria (AIP), mutations in one copy of the porphobilinogen deaminase gene (PBGD) cause a reduction in the expression of the enzyme, which is involved in the heme synthesis pathway.