SERVER-13084: move iterator into record layer