Moved block generation functionality to new type BlockResolver