Creating repositoryselector to add logging for context