Refactors the clipboard_select_tag helper.

Same behavior, just cleaner code.