You can learn a lot from the ultra light dudes. I replaced all my travel electronics to be powerable from USB-C. This saved me from a lot cables and adapters. Even re-soldered the cable of my electric shaver to use a USB-C PD adapter PCB. As long it's somehow close to the standardized voltages (5/9/12/18/etc.) there will be no problems.
And if soldering is beyond your optimization ambition, there's aliexpress where you can find small USB-PD adapters for most electric shavers. It's little niche innovations like this that drive my ordering flow, not saving a few cents.
[1] https://shop.panasonic.com/pages/multishape [2] https://www.amazon.com/dp/B0CMGQWM1B