refactoring Term to GoTerm