Why do you prefer to put this code here rather than inside case block?