assets.removeJS was removed, how to remove JS file from Grav\Common\Assets?

In the past Grav\Common\Assets had functions “removeJS” and “removeCSS” to remove JS and CSS files from Grav’s assets. I used “removeJS” function to remove other plugins’ JS files and added my own JS files, this was how I overrode JS files from other plugins.

However, in the recent version of Grav, “removeJS” and “removeCSS” functions are no longer available in Grav\Common\Assets any more. I wonder how do we remove unwanted JS and CSS from Grav’s assets now?