(b) The court order for the accused to undergo treatment or continuing evaluation and treatment under division (B)(1)(a) of this section shall specify that the accused, if determined to require mental health treatment or continuing evaluation and treatment, shall be committed to the department of mental health and addiction services for treatment or continuing evaluation and treatment at a hospital, facility, or agency determined to be clinically appropriate by the department of mental health and addiction services. The order may restrict the accused's freedom of movement as the court considers necessary. The trial counsel in the accused's case shall send to the chief clinical officer of the hospital, facility, or services provider where the accused is placed by the department of mental health and addiction services or to the managing officer of the institution, the director of the facility, or the person to which the accused is committed copies of relevant investigative reports and other background information that pertains to the accused and is available to the trial counsel unless the trial counsel determines that the release of any of the information in the investigative reports or any of the other background information to unauthorized persons would interfere with the effective prosecution of any person or would create a substantial risk of harm to any person. In committing the accused to the department of mental health and addiction services, the court shall consider the extent to which the person is a danger to the person and to others, the need for security, and the type of crime involved and, if the court finds that restrictions on the accused's freedom of movement are necessary, shall specify the least restrictive limitations on the person's freedom of movement determined to be necessary to protect public safety. In weighing these factors, the court shall give preference to protecting public safety.