Refactoring config file