llvm2ice: refactor creation of Ice var from LLVM value into a method