DRY code for returning settings to default