COAs : now affect a code entity already affected removes the latest relation