Code polish for checkout history