Remove unused case when