She ruled that prosecutors chose the wrong venue to file the case.