Refactor BlockInfo to blockutil package