You never get rid of the middleman. You become them.
If that middleman is open-source and simply interops with SaaS that itself is open-source, there simply is no moat to exploit.
If that middleman is open-source and simply interops with SaaS that itself is open-source, there simply is no moat to exploit.