move building of config into referenced service