The handpicked successor for Consumer Financial Protection Bureau is suing President Trump for appointing one of his political allies to run the agency.

Lawyers for Leandra English — who was appointed acting director by former CFPB Director Richard Cordray — have filed a lawsuit in Washington, DC, federal court that seeks to halt the appointment of Mick Mulvaney, CNN reported.

The attorneys argue that English is entitled to the position under the Dodd-Frank Wall Street Reform law, which states that the deputy director moves into the acting director position once that spot is vacant.

Under those rules, English would serve in her position as acting director until the Senate votes on and confirms a new director.

The CFPB was created in to prevent predatory lending in the wake of the 2007 financial crisis.