remove obsolete relationships