Refactor config settings into a reference class.