Simplify some tag code.