Factor out topic tag searching