HMBS and autoimmune pancreatitis: AIP is characterised by a deficiency in hydroxymethylbilane synthase (HMBS), the enzyme responsible for the metabolism of porphobilinogen (PBG).