Nestle SA’s U.S. unit will lay off about 4,000 workers as it stops delivering frozen pizza and ice cream directly to stores and instead transitions to a warehouse model that’s becoming an industry standard for major food companies looking to trim costs.