Orchid: refactor thread pool creation