Remove duplicated branches