Resolve repository factory out of IoC container