Refactors configuration class