Extracting configuration to config file