Move common code to tulinstr.cc