The bust last month of members of an alleged organized retail theft ring that Home Depot said was the largest in its history was the result of a corporate investigation years in the making.