Adam Pally to Leave &quot;The Mindy Project&quot;