Share tags2

Supersedes #11351.
Hm. We're basically just logging the exception (currently through the use of a static function, which should probably also be replaced by an injected logger object.) So is it better to have the mapper to take care of that, then? (We still might need the `Tags` class itself to log other possible errors, too.)