If a defendant under order of commitment to a facility or outpatient treatment program is found to not have been restored to competency to stand trial, the court shall remand the defendant pursuant to that order of commitment, and, if applicable, order the defendant placed in the custody of the sheriff or the sheriff's designee for transportation back to the facility or outpatient treatment program.
Tex. Code Crim. Proc. § 46B.117