The worker indexing code path should only be selected once the worker indexing capability has been confirmed and the feature flag has been enabled. At the moment, the code path can be manually switched in ScriptHost.InitializeAsync Capability and feature flag checks still need to be implemented.