Use abstract classes to include necessary steps and keep actual test cases small. Ensure tests in CI run faster but not installing unnecessary dependencies. But use pre installed ImageMagick.
We switched to PHPDataSets already but didn't migrate all usages. This commit now migrates all usages left behind.
Past data is now removed again. A test ensures the functionality. Data is no longer marked as deleted but is actually deleted. Relates: #9543