Was this code not above in textannotation_module.py? Should be able to share code via a mixin.