Remove old threading code