[web] de-duplicate logic for get a list of hard deleted project ids GitOrigin-RevId: daf2ff427e24f9ef9253e4bc9ff52f53196fd854