Port-back fix for error with Ninject.Extensions.Factory