Extract method .load_yaml_configuration
Fail with TypeError if config file is malformed