I agree and actually think code-wranglers and lawyers have more in common than people realize. I almost became a lawyer but decided to write code instead.
Train a neural net on all previous court data, and use it to preside over the bulk of redundant court cases. Call it De jure Recursive Engine Driving Decisions, or Judge D.R.E.D.D.
To a point, but if you look at most laws, especially tax laws, you'll see a completely lack of logic in many of them, so much so that they literally could not be put into a program.