Thread pools are refactored