terms: make filters togglable

If a filter has already been created for a particular term label, remove
it instead of adding another one.  This makes it convenient to
add/remove term filters quickly without needing to use the filtering
panel.