The grocery giant’s strategy combines cost-cutting, modernization, and expansion as it reshapes its national footprint in the midst of a pending Giant Eagle acquisition.