Move template parameter in Thread to a more logical scope location.