After the debt bubble burst a dozen years ago, a cascade of business failures turned bankruptcy practices into a bright spot—and set off a rush for talent—among law firms grappling with the Great Recession.

But firms don’t want to be playing catch-up when the next major recession hits.