How did zoning laws help to reduce the danger of pollution?

A: they required factories to limit the use of chemicals

B: they kept factories outside of residential neighborhoods

C: they relocated factories to rural areas from far away cities

D: they established building codes to reform factory plumbing

Isn't it A? I'm not sure