Adding AccumulatedFee class and removing calculation in applyEvent.