[Refactoring] Config.java refactored