Revert "TESB-10277 (Backport changes in SAM server project to 5.2.3)"

This reverts commit fbd906c5470e2a05828a1bfeedba3b957ae49c3f.
Revert "Backport index scripts to 5.2"

This reverts commit f5035480605ed254ea603d92c0f64569a2ca65ad.