I'd move this function into the Tag model, what do you think?