Revert "injecting a repository provider instead of repository"

This reverts commit 3d95b152936198d6746039a5b831fa55f82946f9.