Move use of settings default into the function instead of function definition.