I imagine that the on-prem and public versions are completely different beasts to operate.
It's quite the engineering feat that they reached the current scale with the same codebase! I believe maintaining one shared codebase will be expensive in the long run: locally you want simplicity, SaaS you want scalability, micro-services and all that.