PY-17265 Remove wrong message in the dialog for making function top-level