Refactor the watchman queries into separate functions
Refactor the watchman queries into separate functions

Summary: Watchman.build does a lot of stuff, so refactor it into separate functions

Test Plan: run tests, no functionality change

Reviewed By: yiding

fbshipit-source-id: e5270f4

ilya-klyuchnikov/buck,JoelMarcey/buck,darkforestzero/buck,shs96c/buck,rmaz/buck,clonetwin26/buck,k21/buck,daedric/buck,darkforestzero/buck,facebook/buck,zhan-xiong/buck,dsyang/buck,daedric/buck,Addepar/buck,davido/buck,zhan-xiong/buck,marcinkwiatkowski/buck,Addepar/buck,k21/buck,davido/buck,nguyentruongtho/buck,daedric/buck,justinmuller/buck,justinmuller/buck,romanoid/buck,zpao/buck,grumpyjames/buck,SeleniumHQ/buck,SeleniumHQ/buck,marcinkwiatkowski/buck,clonetwin26/buck,sdwilsh/buck,LegNeato/buck,dsyang/buck,justinmuller/buck,darkforestzero/buck,sdwilsh/buck,zpao/buck,rmaz/buck,zpao/buck,dsyang/buck,shs96c/buck,clonetwin26/buck,sdwilsh/buck,zhan-xiong/buck,marcinkwiatkowski/buck,rmaz/buck,romanoid/buck,zhan-xiong/buck,SeleniumHQ/buck,justinmuller/buck,Addepar/buck,clonetwin26/buck,romanoid/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,Addepar/buck,ilya-klyuchnikov/buck,rmaz/buck,nguyentruongtho/buck,vschs007/buck,sdwilsh/buck,marcinkwiatkowski/buck,grumpyjames/buck,dsyang/buck,facebook/buck,SeleniumHQ/buck,grumpyjames/buck,dsyang/buck,shybovycha/buck,justinmuller/buck,marcinkwiatkowski/buck,sdwilsh/buck,robbertvanginkel/buck,shybovycha/buck,sdwilsh/buck,LegNeato/buck,zpao/buck,marcinkwiatkowski/buck,shybovycha/buck,ilya-klyuchnikov/buck,davido/buck,k21/buck,zpao/buck,nguyentruongtho/buck,shs96c/buck,JoelMarcey/buck,JoelMarcey/buck,dsyang/buck,nguyentruongtho/buck,dsyang/buck,robbertvanginkel/buck,shs96c/buck,facebook/buck,darkforestzero/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,dsyang/buck,brettwooldridge/buck,rmaz/buck,justinmuller/buck,sdwilsh/buck,shs96c/buck,SeleniumHQ/buck,robbertvanginkel/buck,LegNeato/buck,darkforestzero/buck,darkforestzero/buck,Addepar/buck,robbertvanginkel/buck,facebook/buck,shybovycha/buck,rmaz/buck,darkforestzero/buck,sdwilsh/buck,JoelMarcey/buck,JoelMarcey/buck,clonetwin26/buck,SeleniumHQ/buck,clonetwin26/buck,zhan-xiong/buck,justinmuller/buck,daedric/buck,romanoid/buck,justinmuller/buck,romanoid/buck,rmaz/buck,zhan-xiong/buck,shybovycha/buck,rmaz/buck,rmaz/buck,romanoid/buck,vschs007/buck,rmaz/buck,LegNeato/buck,brettwooldridge/buck,daedric/buck,justinmuller/buck,robbertvanginkel/buck,SeleniumHQ/buck,zhan-xiong/buck,Addepar/buck,davido/buck,SeleniumHQ/buck,grumpyjames/buck,LegNeato/buck,k21/buck,vschs007/buck,zhan-xiong/buck,darkforestzero/buck,LegNeato/buck,davido/buck,k21/buck,brettwooldridge/buck,k21/buck,darkforestzero/buck,daedric/buck,shs96c/buck,zhan-xiong/buck,robbertvanginkel/buck,shybovycha/buck,facebook/buck,marcinkwiatkowski/buck,Addepar/buck,darkforestzero/buck,robbertvanginkel/buck,robbertvanginkel/buck,zhan-xiong/buck,LegNeato/buck,darkforestzero/buck,daedric/buck,facebook/buck,justinmuller/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,daedric/buck,romanoid/buck,romanoid/buck,robbertvanginkel/buck,SeleniumHQ/buck,shybovycha/buck,vschs007/buck,robbertvanginkel/buck,shs96c/buck,shybovycha/buck,k21/buck,JoelMarcey/buck,grumpyjames/buck,JoelMarcey/buck,zhan-xiong/buck,davido/buck,dsyang/buck,grumpyjames/buck,justinmuller/buck,clonetwin26/buck,rmaz/buck,romanoid/buck,shybovycha/buck,vschs007/buck,LegNeato/buck,k21/buck,marcinkwiatkowski/buck,sdwilsh/buck,ilya-klyuchnikov/buck,Addepar/buck,romanoid/buck,k21/buck,nguyentruongtho/buck,robbertvanginkel/buck,zhan-xiong/buck,kageiit/buck,k21/buck,davido/buck,darkforestzero/buck,JoelMarcey/buck,vschs007/buck,JoelMarcey/buck,shybovycha/buck,clonetwin26/buck,shs96c/buck,rmaz/buck,grumpyjames/buck,justinmuller/buck,marcinkwiatkowski/buck,kageiit/buck,robbertvanginkel/buck,grumpyjames/buck,LegNeato/buck,kageiit/buck,SeleniumHQ/buck,marcinkwiatkowski/buck,robbertvanginkel/buck,zpao/buck,LegNeato/buck,brettwooldridge/buck,davido/buck,daedric/buck,grumpyjames/buck,clonetwin26/buck,marcinkwiatkowski/buck,ilya-klyuchnikov/buck,dsyang/buck,Addepar/buck,Addepar/buck,davido/buck,shybovycha/buck,zhan-xiong/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,brettwooldridge/buck,zpao/buck,grumpyjames/buck,darkforestzero/buck,ilya-klyuchnikov/buck,nguyentruongtho/buck,romanoid/buck,SeleniumHQ/buck,shybovycha/buck,shybovycha/buck,dsyang/buck,rmaz/buck,LegNeato/buck,dsyang/buck,sdwilsh/buck,vschs007/buck,vschs007/buck,nguyentruongtho/buck,k21/buck,clonetwin26/buck,sdwilsh/buck,davido/buck,Addepar/buck,romanoid/buck,vschs007/buck,grumpyjames/buck,vschs007/buck,marcinkwiatkowski/buck,k21/buck,clonetwin26/buck,shs96c/buck,sdwilsh/buck,justinmuller/buck,LegNeato/buck,JoelMarcey/buck,kageiit/buck,SeleniumHQ/buck,brettwooldridge/buck,shs96c/buck,brettwooldridge/buck,vschs007/buck,romanoid/buck,ilya-klyuchnikov/buck,davido/buck,Addepar/buck,LegNeato/buck,clonetwin26/buck,JoelMarcey/buck,vschs007/buck,davido/buck,vschs007/buck,shs96c/buck,shs96c/buck,Addepar/buck,daedric/buck,kageiit/buck,kageiit/buck,facebook/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,SeleniumHQ/buck,brettwooldridge/buck,daedric/buck,dsyang/buck,grumpyjames/buck,shs96c/buck,k21/buck,ilya-klyuchnikov/buck,kageiit/buck,JoelMarcey/buck,sdwilsh/buck,daedric/buck,marcinkwiatkowski/buck,davido/buck,clonetwin26/buck,daedric/buck