Removing one switch case from the code

With the previous commit, the need for the switch case has been
obviated.