cleaned up EventSourcingRepository