Record removed items
Record removed items

Summary:
We didn't record the removed items correctly since std::remove_if would shift
the elements in the container.

Reviewed By: int3, emma0303

Differential Revision: D13908254

fbshipit-source-id: 2011d40d1a3cde1cf31d6823bce446a5236c7991

facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex