Naftogaz, the giant publically-owned Ukrainian oil and gas company with 80,000 employees, used to be a synonym for wastage, corruption and opacity. But it looks like it might have turned a corner. Thanks to a new management team, a fourfold increase in gas prices and the beginning of legal reforms, its losses in 2015 will be down to 3.1 percent of Ukraine’s gross domestic product, from 5.5 percent in 2014, according to the International Monetary Fund. The impact on the deficit could fall to 0.2 percent in 2016, and Ukraine’s dependence on Russian gas has been markedly reduced.

But just as skies were clearing, new clouds appear. The reform of Naftogaz is stalling. Though they adopted a gas law in April, Ukraine’s politicians have not been able to agree a model for the unbundling of Naftogaz’s different business lines, or on which should be prepared for privatization. The risk is that if Naftogaz is not quickly and comprehensively reformed, the bad old habits of redistribution and political corruption will resurface. Because of the importance to Ukraine of Naftogaz, this could undermine the country’s association process with the European Union. In addition, the income from gas transit, from which Naftogaz currently earns about $2bn, might drop to zero should Russia’s Gazprom finalize its attempts to circumvent Ukraine’s gas transit system via the Nord Stream II pipeline.

The only sensible response to both challenges is to complete the reform of the regulatory framework and to fully unbundle Naftogaz. The gas transmission arm should become a fully independent business that is regulated like its peers in the EU and shielded from political control, in order to convince European suppliers that any new alternative to Ukrainian gas transit would be a waste of money. This is urgent, because uncertainties over gas transit through Ukraine are a pretext for Nord Stream II. And it is also crucial in the longer term, because the badly needed investment in Ukrainian gas production requires non-discriminatory access to the pipelines.

Unbundling the gas transmission business and freeing it from political control implies significant political cost for the oligarchs and politicians that will lose influence over the main Ukrainian rent-generating machine. Moreover, the benefits of reform will only accrue over time – but Ukraine places more value on income today than on future benefits. Furthermore, the obvious solution – privatising the gas-transit business and regulating it according to the EU rules that Ukraine has signed up to (the famous ‘third package’), is problematic. It is not feasible because an immediate privatisation will look like a sell-out of the country. No sensible western investor without political leverage in Ukraine would invest money and time in Naftogaz’s gas transmission business, only for their investment to be implicitly expropriated when the revenues start flowing. And the plan is not credible for transit customers, because there are strong incentives for future governments to use the regulatory tools at its disposal to extract economic or political rents from gas transit.

But there could be a solution. Ukraine could sell a share in its gas transmission business to a benevolent investor that has an interest in a prosperous Ukraine and stable gas transit. One candidate could be the European Bank for Reconstruction and Development (EBRD) which has built up expertise in Ukraine’s gas sector over two decades and has experience of pre-privatisation deals. From the perspective of the mainly European taxpayers that fund the EBRD, such a transaction is justified by self-interest. The EU would stabilise gas transit through Ukraine, enable gas sector reforms that are crucial for Ukraine’s political stability and might even extend its internal gas market to a country with significant gas storage and production potential.

To enable the deal, the Ukrainian government would have to commit to a regulatory framework enabling the EBRD to make profits if the gas transmission business is well managed. Based on this commitment, the EBRD could bring in western expertise and money to restructure the business. The aim of the operation would be full privatisation of the state and the EBRD shares some years down the road. The expected revenues when this final privatization step takes place would be a major incentive for the Ukrainian government to stick to its commitments to the EBRD.

Selling the gas transport system to a ‘foreign’ investor at a price that might appear low compared to private transactions of similar assets in the west could be unpopular in Ukraine, especially as household energy costs are set to rise. To address this concern, a fixed share of the profit that the EBRD makes when privatisation takes place would be returned to the Ukrainian budget. This would also increase the incentives for the Ukrainian government to develop a regulatory framework that increases the privatisation value of the gas transmission business.

For the EU, the outlined pre-privatisation deal would be a much more beneficial way to reduce gas transit risk, compared to building a redundant gas pipeline through the Baltic Sea. Most importantly for the EU, restructuring Naftogaz would not just be about the efficiency of the Ukrainian gas sector or fiscal sustainability. It would have positive repercussions on the political culture of Ukraine and the entire association process.

Georg Zachmann is a fellow at the Brussels based economics think tank Bruegel and a member of the German Advisory Group in Ukraine.