Beetles of the genus Lagria need a little help from their bacterial friends throughout their immature life stages. But keeping them in the same spot throughout life isn't feasible. This is because beetles are holometabolous insects, which undergo an overall bodily reorganization (metamorphosis) as pupae.
source https://www.lifetechnology.com/blogs/life-technology-science-news/beetles-rely-on-unique-back-pockets-to-keep-bacterial-symbionts-safe-during-metamorphosis