Refactor for some upcoming changes.
Specs for serve order.
Support deuce serve ordering.