Settings refactory