refactor macos settings