factored out setting default values for preferences to Utilities