A few more years, and Microsoft Middle Manager 2.0 will be doing this job.
AIs will take over middle management simply because they're faster and have more bandwidth than humans. They don't have to be smarter, just better coordinated. As Patton once said, "A good plan violently executed now is better than a perfect plan executed next week."
Programs already run lower management. At Uber and Amazon, the computer is the foreman.