This set of changes is quite long and should be extracted into its own method. A method that recursively loads config files should do the trick.