Reorganized config parsing to better utilize configparser API