Where the superintendent of Bryce or Searcy Hospital or any other facility so designated by the commissioner, after evaluation by appropriate members of the medical staffs of said facilities as so designated by the superintendent, has determined that any person accused of a crime and committed to the custody of the department in one of its facilities is competent to stand trial, or where the superintendent has been notified in writing by the committing court that charges have been nolle prossed or otherwise dismissed against any person currently confined to the custody of such facility, it shall be the duty of the superintendent to immediately notify in writing the court from which the person was committed. The court shall forthwith order the sheriff to remove the person from said facility back to the county within 72 hours of receipt of such notice, Saturdays, Sundays and holidays excluded.
Ala. Code § 22-52-32 (1975)