Move term extensions into term sub module.