HMBS and autoimmune pancreatitis: AIP occurs because of mutations in the gene encoding porphobilinogen deaminase (PBGD), also known as hydroxymethylbilane synthase (HMBS).