Refactor Checkout spec.