fix some flow reference-before-declaration errors
fix some flow reference-before-declaration errors

Reviewed By: jbrown215

Differential Revision: D40638870

fbshipit-source-id: 57459dec30ec5b87397365a709f2d846c87e378a

xuorig/relay,xuorig/relay,xuorig/relay,facebook/relay,facebook/relay,xuorig/relay,xuorig/relay,facebook/relay,facebook/relay,facebook/relay,xuorig/relay,facebook/relay