Interestingly, at least in part of California, there are "freedom to farm" laws because one too many people sued after moving into a subdivision constructed next to a dairy farm or something that had been there for decades. In pretty much the whole San Joaquin Valley, even if you live in a house in the middle of a city surrounded by shopping malls, when you buy the house, you are required to sign a "right to farm" document that indicates you acknowledge farming is taking place and tough luck for you if you don't like the smell, you knew what you were getting into.
Meanwhile, I still occasionally lurk on Calguns and saw that the public shooting area I used to frequent in the National forest was shutdown by anti-gun activists*. Seems to be a growing trend in National Forests in CA, so uit's interesting the pull state activists seem to have on Federal policy. From what I've been reading, my old gun club is probably not far behind. They are using both the "native lands" excuse and the "lead contamination" excuse.
* I do have to place part of the blame on shooters. Some regulars there would get together and clean up trash once every few months, but slobs, gang bangers, etc., would continue to pollute it, and the unofficial name of the place was "The Glass Factory" for a reason. Also appliances, propane tanks (several fires started), etc. The cleanup group would regularly fill 2-3 of the big 30 yard dumpsters on a cleanup. Sometimes we're our own worst enemy.