The layoffs, affecting 20% of Grubhub's workforce, come as the company integrates with Wonder and reorganizes for future growth.