Refactor the way how the config is being loaded.