ENH refactor for dynamic n_jobs