BMW is considering manufacturing the electric version of its Mini compact car in Germany instead of the UK if the latter exits the European Union.

Sources at BMW told Handelsblatt BMW may produce the electric Mini at its plants in Regensburg and Leipzig. BMW may also choose Dutch company Nedcar. It produces two Mini models for the German automaker.

Handelsblatt cited BMW sources suggesting it would no longer makes sense to invest in Mini’s main plant in Oxford if the UK carried out a “hard Brexit” from the union and consequently the single market.

A decision has to be made in the second half of the year as BMW plans to bring the electric Mini to market in 2019.