Extracting loading of configuration from yaml file.