Converted the configuration into a class