N.Y. Criminal Procedure Law § 230.20
2. At any time within the period provided by section 255.20, the appellate division of the department embracing the county in which the superior court is located may, upon motion of either the defendant or the people demonstrating reasonable cause to believe that a fair and impartial trial cannot be had in such county, order either: