ENG-10851.
We can run this query regardless of type, it will rekey in table where entity exists.
Depends on D14844
Tests in D14848
We can consider doing it in a loop.
address review