A method for aligning serial batching decisions in a two-level organization of factory and distributed workstations