A method comprises receiving a flow of milk at an inlet of a manifold. The inlet comprises a first end coupled to a hose that receives a flow of milk from a teat cup and a second end terminating in a chamber of the manifold. The manifold comprises one or more other inlets and a plurality of outlets. The plurality of outlets includes one or more milk collector outlets and one or more drain outlets. The method proceeds by causing the flow of milk to be directed to a corresponding milk collector outlet by causing a shut-off valve corresponding to the inlet to open, and by causing a drain valve corresponding to the inlet to close. The method concludes by causing the flow of milk to be directed to a corresponding drain outlet by causing the drain valve corresponding to the inlet to open.