BS-8590: Avoid to try to remove twice the data referenced in scripts and
conditions. Write integration tests for non-regression