Pulled out dependency on SessionProvider from Repository.cs