Remove unnecessary `distinct`