Libya plans to shut down three of its biggest migration detention centres, the country's Interior Minister Fathi Bashagha has announced.
The centres in question are in Misrata, Tajoura and Khoms.
Organisations that monitor the situation in Libya fear these closures may lead to even more overcrowding in the remaining centres.
They also fear the possibility of many more migrants being left in the hands of traffickers.
The UN last month called for the dismantling of all detention centres for refugees in Libya, saying the facilities were not fit to house migrants.
Detainees in various centres have described routine torture, rape, malnutrition and the spread of diseases like tuberculosis due to the conditions they are forced to endure.
Campaign group Amnesty International has called conditions "horrific" and "inhuman".
"These detention centres, at least some of them, they work on a business model that involves smugglers, traffickers, sometimes forced labour," the UN refugee agency's top official in Libya, Jean-Paul Cavalieri, told the BBC.
Many African migrants hoping to reach Europe have been sold at slave markets in Libya, often as sex slaves or construction workers.
It is believed there are 12 detention centres in western Libya nominally run by the UN-recognised government in Tripoli.
Libya's plans to close three of the centres follows criticism that migrants were being returned to Tajoura after it was hit by a deadly missile attack in July.
That "outrageous" attack could amount to a war crime, said the UN's Libya envoy Ghassan Salamé and top human rights official Michelle Bachelet.
But the UN Security Council failed to condemn it after the US declined to endorse a joint statement, according to diplomats.
Tajoura Detention Centre is close to the capital, Tripoli, where there is ongoing fighting between the UN-recognised government and the Benghazi-based Libyan National Army which has vowed to take over the city.
Only last week, 150 migrants drowned after they left Libya for Italy.
This was the largest loss of life in the Mediterranean Sea this year.
On Thursday, 52 migrants including 16 women and two babies were rescued from a ship that was in danger of sinking halfway between Libya and Italy.
Spanish authorities have previously warned the charity which conducted the rescue, called Proactiva Open Arms, to stop its search and rescue missions of face fines of up to 900,000 euro ($999,000; £825,000).
- 30 July 2019
- 23 January
- 21 December 2018
- 29 November 2017
- 7 September 2017
- 21 June 2017