To hint at D-O’s role in the story, he could have one or two more lines before this in the film. When he’s scooting around on Kijimi, he could say something like ‘Kimiji scan complete.’ before Rey fixes his wheel. Then when he is on Endor hanging out with the horses, he could say ‘Life forms detected…updating Endor…no thank you!’
This gives the droid an ongoing purpose in the story, rather than just being used for a onetime plot dump, and sets up an offscreen interaction between the droid and Rey where she asks it about Jakku.