Refactoring tags functionality into TagService