DRY up configuration class.