Refactor reading tags from unified class to tag-specific class