RelNoteson commit expose a helper function peel_to_type(). (8177631)
   1Documentation/RelNotes-1.5.5.txt