i don't think extracting water from gasoline would be difficult at all, but probably plenty of other contaminants possible.
Now scale that to millions of barrels of oil every day.
2. Harvest.
In fact, a common further down in this thread says that's exactly how they harvest all of the oil: they pressurize it with (salt)water.