Factor out deprecated config parsing