Move decay logic into its own class.