(#726) - remove unused deduplication

This code is unnecessary as the `sql` query has it all.