Not sure the legal process to shut these down, but they are a blight on our society. I made the mistake of driving through Manderson, WY recently - even Wikipedia notes "The town is widely regarded as a speed trap for tourists heading to Yellowstone National Park." No kidding. I had blown a tire off-road in the hills above town and was driving slow on a spare, and they still nailed me for "speeding." No use fighting it, as the online chatter is that the town judge and prosecutor are as corrupt as the three full-time cops. (Did I mention the town population was 88?)
This is a case where the young officer needs to immediately call for some of his senior officers to handle the situation. Let the Sheriff bluster and spit but get a ticket anyway.
bkmk
More at the above.