Move config related things to another class