N.Y. Criminal Procedure Law § 210.40
1. An indictment or any count thereof may be dismissed in furtherance of justice, as provided in paragraph (i) of subdivision one of section 210.20, when, even though there may be no basis for dismissal as a matter of law upon any ground specified in paragraphs (a) through (h) of said subdivision one of section 210.20, such dismissal is required as a matter of judicial discretion by the existence of some compelling factor, consideration or circumstance clearly demonstrating that conviction or prosecution of the defendant upon such indictment or count would constitute or result in injustice. In determining whether such compelling factor, consideration, or circumstance exists, the court must, to the extent applicable, examine and consider, individually and collectively, the following: