I didn't want to pollute the namespace, and since each case does essentially the same thing as the others I thought it fit well grouping them under one function. If it's preferred to make them separate functions I can do that.