extracted merge action to TagManager