You can still have a function for abstracts RecFromTopic but have it = function(topicsPapersList) { someFunctionThatHasAllTheSharedLines(topicsPapersList) }
That way if we want to differentiate we can do it before or after.