Refactor topicList and topicListHelpers into one object, remove other global vars