I remember when old school bathroom medicine cabinets mounted between two studs and the mirror opened to reveal some shelves. Like this:
https://cookandboardman.com/asi-10-8340-recessed-medicine-cabinet/?sku=ASI10-8340
They’d often have a slot in the back so you could dump your used double edged blade into the wall cavity! Ha!
Yep, I lived in a house as a child that had one of those.
I have renovated enough houses to find several piles of those razors between the studs.