Refactorize Settings