Nice work on this feature Allan! I put together a (quick and dirty) command for the AS bundle to extract the selected text to a new function and re-indent it. Would this be useful to anyone else? I'll commit it to the repo if there's any interest.
Ben