Refactor importTopicmap