Refactor unix Hunk driver