Refactoring settings component.