Fix characteristics cascade delete and orphan removal.