A.F....... [ZBX-8430] refactored cascade deletion