loadForTopic should just take a topicId. And the gaLayers service should be the one responsible for creating the layersconfig URL. See my other comments on that matter.