User configuration file and code refactoring