I'd simplify this to just return add_query_arg( [...], [...], admin_url( '/index.php' ) );  No need to save to a variable when it's never really used.