Centralizing logic in OrderKey.