We've done something like that, I think, in hypothesis/annotator@shoot-extension-1