Separating impurities from natural gas