modified componentFactory to resolve component’s dependencies via ScopeHandlers