Yes thats it, and the blame goes to where it belongs.....the over zealous, careless and politicized prosecutors who screwed up the case.
Your suggestions are what are often worked out in private in a judge’s chambers.
Then, everyone’s a winner and everyone loses a little.