The National Rifle Association on Friday announced that it will file for Chapter 11 bankruptcy and reincorporate in Texas instead of New York, where attorney general Letitia James has sued to dissolve the gun-rights advocacy group.

In the lawsuit, filed in August, James alleged that the leaders of the NRA misused tens of millions of dollars in charitable funds, and she argued that her office had jurisdiction over the NRA as a nonprofit chartered in New York.