Every cup that comes to the rail tips. What runs wall to wall goes to the stores.
Slide each cup along the rail before it tips, and pour it where you like. The beans run downhill, and one kind reaching from one wall to the other is kept.
The cup waits on the rail.