These two lines can be moved below the `switch` statement, since they are shared by both code paths.