Replacing the Conditional Logic on Price Code with Polymorphism