Move update related functions to term module