A decomposition of repeat buying