Check if the Task type can be made abstract
An abstract type would for instance make it easier to centralize deregistering for SDS notifications on destroy.
It needs to be checked
- whether this is possible without too many changes (it is not possible to pattern-match on tasks any more)
- what the performance penalty would be
The following discussion from !437 (merged) should be addressed: