remove relatedObject with isLocatedIn attribute