(2) A defendant shall be detained at a local correctional facility, except as otherwise provided in subdivision three of this section.
(3) (a) A defendant sixteen years of age or younger, who allegedly commits a criminal act or violation of his or her supervision on or after October first, two thousand eighteen or (b) a defendant seventeen years of age or younger who allegedly commits a criminal act or violation of his or her supervision on or after October first, two thousand nineteen, shall be detained in a juvenile detention facility.