Refactoring CheckoutServer