This stops a practice some call "judge shopping."