Remove duplicate case form swtich statement.