They should have just bought CSK in late 2000s before O'Reilly Automotive acquired them and integrated them. Also, they should have kept Jack Broulliard on longer instead of investing in DJ and the blue-shirts.
There you have it, problem solved, kept 2nd place in the industry, and jobs in tact.