ENH: Breakup into dgrep and neighbours