DEV: abstract new functions out of topic-tracking-state (PR #9910)

GitHub

I am actually working on this right now… hold off on work there.

I am sorting out new/unread counts for tags with sidebar theme… it is a very very tricky change.