Middle management is explicitly not the task masters that supervise workers and police their behavior and explicitly not the c-suite of do-nothing bourgeoisie soothsayers. It's quite explicitly the group of people that analyze the organization, improve safety and training, handle worker complaints, plan things, evaluate decisions that impact the collective, etc.
Middle management absolutely includes coordinator functions, planning functions, etc.
I'm not confusing a collectively decided role with bourgeoisie lapdogs, I am saying that the work that middle.managemrnt does in bourgeois corporations includes much of the same work that would be needed in a large-scale workers cooperative.