these gasses, or as. like to call them 'stink clouds' are often spawned when bathrooms overflow from a full waste line and nowhere for it to go. If you have vents setup, you can trap stink clouds by building bulkheads instead of doors, because they block airflow. But uh, yeah once a stink cloud gets into an open room it really spreads fast. Best thing is to build vents to allow oxygen flow, and trap it off with bulkheads. even putting a bulkhead to seal off where your bathrooms are is good practice I believe.