The Boeing Co.’s legal department will be kept busy as the aerospace giant reels from President Donald Trump’s decision to ground its 737 Max fleet. According to former general counsel, Boeing’s in-house lawyers can help minimize the fallout by taking the lead on figuring out what happened, preparing for potential litigation, and reviewing internal and external communications.

Ben Heineman, former GC and senior vice president at General Electric Co., said in an email that Boeing’s legal department must build on its own internal analyses and the views of experts both inside and outside the company to identify both problems and solutions that will pass regulatory and public muster so the Max jets can fly again—a process that may involve additional in-flight, not just simulator, testing.