Refactor and layout basic configuration class.