Refactoring ConfigLoader class