>I don't know what this is, sorry
In emacs, try M-x tide-refactor. It's the "extract to function in module scope" option.