Make processing of topic references generic.