Split StreamUtils out of FuncUtil.