Extracting external config file logic