I’m betting that getting sandboxing right, and by that I mean turning it into something non-technical people can understand and trust, is more important than making the code concise. This basically means building constrained deploy targets where, for example, outbound egress can be monitored by the platform.
Some thoughts on the subject: https://good.vibes.diy/blog/scoped-to-the-app