Replaced use of StatisticsRepository with BookRepository.