migrating doc_topics to newest behavior and reducing calls