Move variables_in_term().