[checkmk-commits] Reduce duplicate logic of tag edit modes