Support taking an owned Self in function exports