Simplify the definition of purchaseDictionary