This was something that came up during Brexit of course but it seems difficult when you start getting into the details.
The idea is that (completely reasonably) if you have a “single market” as you describe, you need harmonised regulation so everybody is on a level playing field; once you have done that then you need some form of democratic governance.
Everyone basically ends up designing the EU when they do this.