chore: refactor de-duplication in rw? (#7799) Slight refactor of how de-duplication works in rw?.
rw?