Maybe try first to spend some time and speak with the actual people (judges, administrators, clerks, etc.) that do this daily, to understand how it works in reality.
If you cannot make the distinction between computer code and law/regulation, that get applied by humans in humans time and humans circles…?
« Refactoring » an org or a government like you project to, like Elon and his boys is doing, it is going to cost actual lives. People killed.
we're already past that. the NIH funded EcoHealth alliance which partnered with WIV, and advocated for GOF research, so, the NIH is (if indirectly) responsible for millions of COVID deaths. That's like two holocausts. ok, lets discount it by 50% since it was indirect. the NIH is responsible for one Holocaust.