Refactor in config file