Washington’s police department chief said that a Trump administration order installing a federal official as its head would upend command structure and be a “dangerous” threat to law and order. Police Chief Pamela Smith’s statement came in a court filing as the city seeks to block the federal takeover of its police department in court.

Washington’s top legal official sought an emergency restraining order in federal court blocking a Trump administration move to put a federal official in charge of its police. District of Columbia Attorney General Brian Schwalb argues the police takeover is illegal and threatens to “wreak operational havoc.”

The lawsuit comes after U.S. Attorney General Pam Bondi said Thursday night that Drug Enforcement Administration boss Terry Cole will assume the police chief’s duties and approval authority for any orders issued to officers. It was unclear where the move left the city’s current police chief, Smith, who works for the mayor.

Schwalb argues the new order goes beyond Trump’s authority and implementing it would “sow chaos” in the Metropolitan Police Department. “The administration’s unlawful actions are an affront to the dignity and autonomy of the 700,000 Americans who call D.C. home. This is the gravest threat to Home Rule that the District has ever faced, and we are fighting to stop it,” Schwalb said.