McKinsey and other consulting firms are using AI to streamline management structures — what some call The Great Flattening.