Just change default NO to default YES, BUT..
I don’t think there should be any restriction on what people can build.
You could have a rule on bad smell, that applies to equally to everyone, so a farm would be legal, if they can control the smell.
Egg-laying chicken farm in between two multi-family units would be perfectly legal. I see this as a good thing.
Noise pollution? Chickens don't have much of a reputation for being quiet.
Also various farming can have quite different hours compared to residential living.
Just change default NO to default YES, BUT..