Lets consider how we move this logic inside ContentData
Maybe we can create method called iterate which gets block and executed things on the block...

message_content.iterate { |checksum, instances|
...
}