Greece will close overcrowded refugee camps on islands across Turkey and replace them with “detention centers”, according to officials.

The three centers to be closed – on the islands of Chios, Samos and Lesbos, including the infamous Moria camp, which currently houses some 36,400 people in dire conditions, have been repeatedly criticized by rights groups and the Council of Europe.

They have a nominal capacity of only 4,500.

The Greek government said it would replace “detention centers” camps with a capacity of at least 5,000 people each.

Small camps on the islands of Kos and Leros will also be remodeled along these lines and expanded, the government’s special coordinator for migration Alkiviadis Stefanis said.

Instead of being allowed to move freely inside and outside the camps, asylum seekers will now be confined until they are granted refugee status and relocated to the continent, or refused and sent back to Turkey, officials said.

Greece’s new conservative government, which came to power in July, has pledged to relocate thousands of asylum seekers to camps on the continent by early 2020.

It has already adopted a law tightening asylum requirements for migrants and refugees and has promised to deploy additional border patrols.

Stefanis also said Wednesday that new criteria would be issued for the functioning of NGOs that assist refugees and migrants.