Refatoring ConfigurationLoader.loadConfiguration method.