Convert threads to use transformer builder