Pipelines are fine. Refineries should not be in very populated areas.
I lived about three miles from there. You could start to clean the soot off your windowsill, and by the time you got from one end to the other end, the first end was sooty again.
They weren’t. The population grew up around them, largely supporting businesses, and then developments of homes where people lived who liked short commutes to their refinery-related jobs.
It’s the same all over the country where refineries are located.
Ditto big airports.