Factor RemoveIds and use RequestError