More than three years after Carl Icahn gained control of CVR Energy Inc. in a hostile takeover battle, the billionaire investor has settled his fee dispute with the two investment banks that helped craft CVR’s unsuccessful defense. But Icahn isn’t done fighting with CVR’s former lawyers at Wachtell, Lipton, Rosen & Katz.

Icahn’s takeover of CVR in 2012 sparked a three-front litigation war. First, CVR’s investment banks—Goldman Sachs & Co. and Deutsche Bank Securities Inc.—sued CVR in New York state court because the company refused to pay a $36 million fee that the banks claimed they were owed for the takeover defense. Then CVR sued Wachtell for malpractice in Manhattan federal court in October 2013 for allegedly failing to fully explain to CVR directors the terms of the company’s fee agreement with the banks. The company is seeking $36 million for the bank fee and $6 million for Wachtell’s fee. Two months later, Wachtell sued CVR and Icahn in state court, seeking a declaration that it didn’t commit malpractice.