Added method in factory to get status repository.