Remove obsolete relations