X86, Config: Move the setting of work count options to a separate function.