Move configuration file parsing code into another class