Move config code to its own class