How to remove key value pair from an object having values as another array of objects