minor refactoring
minor refactoring

Reviewed By: genevievehelsel

Differential Revision: D35297447

fbshipit-source-id: 9173e676156596e0e6ee1bda5a6c8d68a95e23e1

facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman,facebook/watchman