Remove unnecessary dataset ptr passing