In my opinion this is largely a UI/UX issue. For some reason, applications with rich tagging systems have only the most raw basic interface for manipulating and searching using tags.
I think something like datalog queries would be perfect for refactoring and searching tags. Would also let you declare relationships between tags, like "tagged(x, calculus) -> tagged(x, math)"