Betsy beetle larvae pupate in a cell formed from chewed wood fibres and frass.
Bottom, Side, and top views of a betsy beetle pupa. Note the vestigial second pair of legs on the bottom view.

Photo by J.R. Baker, NC State University