Extracts the #update_item_quality method.
Uses a Guard Clause for the legendary item: Sulfuras, Hand of Ragnaros.
Untangles the reading and writing to the item.sell_in attribute.
Extracts the #increase_quality method.
Extracts the #decrease_quality method.
Uses the -= and += operators to simplify.
Extracts the #writeoff method; Simplifies the implementation.
Extracts the #expired? method.
Transforms negative conditions to positive conditions.
Transforms to if-elseif rather than nested ifs.
Duplicates a leg of an if to prepare for simplification.
Decouples the duplicated if legs to prepare for simplification.
Simplifies Aged Brie leg.
Simplifies Backstage Pass leg.
Simplifies by using conditional modifiers.
Extracts the #perform_inventory_rollover and the #perform_inventory_rollover methods.
Uses a Guard Clause to simplify the #perform_expiration method.
Renames the #perform_expiration method to #perform_inventory_expiration.
Uses a case statement rather than an if-elsif statement.
Makes the extracted methods private.