You do this enough times that it's probably worth factoring out into a utility method that takes the name of the config file and returns the config.