TaskDispatcher: move repos to constructor’s config
refactor TaskDispatcher a bit