Refactor putOrderId.