Recreate the user-defined Smart Query.