Removed redundant directives in switch statement