Refactor threaded reactor.