De-dupe some code.
De-dupe some code.

Test Plan: buck test --all

MarkRunWu/buck,grumpyjames/buck,OkBuilds/buck,shs96c/buck,facebook/buck,rmaz/buck,kageiit/buck,Distrotech/buck,justinmuller/buck,shs96c/buck,clonetwin26/buck,lukw00/buck,rmaz/buck,luiseduardohdbackup/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,stuhood/buck,bocon13/buck,brettwooldridge/buck,rhencke/buck,rhencke/buck,JoelMarcey/buck,JoelMarcey/buck,grumpyjames/buck,zpao/buck,k21/buck,k21/buck,nguyentruongtho/buck,davido/buck,justinmuller/buck,romanoid/buck,siddhartharay007/buck,artiya4u/buck,1yvT0s/buck,janicduplessis/buck,nguyentruongtho/buck,vschs007/buck,LegNeato/buck,shs96c/buck,dsyang/buck,mnuessler/buck,Dominator008/buck,siddhartharay007/buck,illicitonion/buck,darkforestzero/buck,shs96c/buck,siddhartharay007/buck,Distrotech/buck,lukw00/buck,k21/buck,romanoid/buck,1yvT0s/buck,mikekap/buck,shs96c/buck,Addepar/buck,ilya-klyuchnikov/buck,artiya4u/buck,neonichu/buck,JoelMarcey/buck,MarkRunWu/buck,mogers/buck,shybovycha/buck,artiya4u/buck,shybovycha/buck,mogers/buck,dsyang/buck,sdwilsh/buck,dpursehouse/buck,dushmis/buck,stuhood/buck,raviagarwal7/buck,brettwooldridge/buck,facebook/buck,tgummerer/buck,raviagarwal7/buck,liuyang-li/buck,zhan-xiong/buck,rmaz/buck,dushmis/buck,janicduplessis/buck,bocon13/buck,bocon13/buck,shybovycha/buck,rhencke/buck,LegNeato/buck,zpao/buck,rowillia/buck,Learn-Android-app/buck,Distrotech/buck,illicitonion/buck,SeleniumHQ/buck,darkforestzero/buck,grumpyjames/buck,vschs007/buck,sdwilsh/buck,dsyang/buck,sdwilsh/buck,dsyang/buck,Learn-Android-app/buck,rmaz/buck,SeleniumHQ/buck,raviagarwal7/buck,davido/buck,OkBuilds/buck,artiya4u/buck,k21/buck,Dominator008/buck,MarkRunWu/buck,mogers/buck,SeleniumHQ/buck,liuyang-li/buck,daedric/buck,zhan-xiong/buck,vine/buck,rowillia/buck,vine/buck,Learn-Android-app/buck,mogers/buck,justinmuller/buck,dushmis/buck,mogers/buck,dsyang/buck,tgummerer/buck,rhencke/buck,sdwilsh/buck,clonetwin26/buck,lukw00/buck,justinmuller/buck,clonetwin26/buck,vschs007/buck,justinmuller/buck,romanoid/buck,neonichu/buck,robbertvanginkel/buck,janicduplessis/buck,darkforestzero/buck,mikekap/buck,brettwooldridge/buck,mread/buck,mikekap/buck,romanoid/buck,sdwilsh/buck,liuyang-li/buck,pwz3n0/buck,janicduplessis/buck,siddhartharay007/buck,mikekap/buck,sdwilsh/buck,JoelMarcey/buck,stuhood/buck,zhan-xiong/buck,LegNeato/buck,tgummerer/buck,illicitonion/buck,justinmuller/buck,liuyang-li/buck,JoelMarcey/buck,k21/buck,MarkRunWu/buck,SeleniumHQ/buck,rowillia/buck,liuyang-li/buck,luiseduardohdbackup/buck,brettwooldridge/buck,neonichu/buck,shs96c/buck,1yvT0s/buck,zpao/buck,luiseduardohdbackup/buck,MarkRunWu/buck,rhencke/buck,Heart2009/buck,mnuessler/buck,davido/buck,liuyang-li/buck,Heart2009/buck,raviagarwal7/buck,lukw00/buck,pwz3n0/buck,LegNeato/buck,vschs007/buck,OkBuilds/buck,raviagarwal7/buck,vschs007/buck,zhuxiaohao/buck,illicitonion/buck,SeleniumHQ/buck,liuyang-li/buck,dsyang/buck,illicitonion/buck,dsyang/buck,Heart2009/buck,illicitonion/buck,raviagarwal7/buck,saleeh93/buck-cutom,liuyang-li/buck,marcinkwiatkowski/buck,rhencke/buck,daedric/buck,hgl888/buck,bocon13/buck,shybovycha/buck,bocon13/buck,vine/buck,vschs007/buck,pwz3n0/buck,vine/buck,artiya4u/buck,SeleniumHQ/buck,nguyentruongtho/buck,dsyang/buck,robbertvanginkel/buck,Addepar/buck,k21/buck,dushmis/buck,daedric/buck,daedric/buck,mnuessler/buck,nguyentruongtho/buck,mikekap/buck,zhuxiaohao/buck,rhencke/buck,rowillia/buck,k21/buck,mread/buck,bocon13/buck,rowillia/buck,clonetwin26/buck,liuyang-li/buck,dpursehouse/buck,davido/buck,vschs007/buck,LegNeato/buck,janicduplessis/buck,OkBuilds/buck,JoelMarcey/buck,romanoid/buck,Learn-Android-app/buck,kageiit/buck,siddhartharay007/buck,davido/buck,ilya-klyuchnikov/buck,Addepar/buck,ilya-klyuchnikov/buck,zhuxiaohao/buck,vine/buck,JoelMarcey/buck,tgummerer/buck,rowillia/buck,daedric/buck,romanoid/buck,davido/buck,shybovycha/buck,shs96c/buck,saleeh93/buck-cutom,rmaz/buck,davido/buck,darkforestzero/buck,mnuessler/buck,LegNeato/buck,lukw00/buck,JoelMarcey/buck,bocon13/buck,illicitonion/buck,darkforestzero/buck,Dominator008/buck,nguyentruongtho/buck,mikekap/buck,clonetwin26/buck,bocon13/buck,vine/buck,illicitonion/buck,Distrotech/buck,rmaz/buck,tgummerer/buck,raviagarwal7/buck,davido/buck,justinmuller/buck,marcinkwiatkowski/buck,vine/buck,1yvT0s/buck,k21/buck,mikekap/buck,mnuessler/buck,neonichu/buck,zhuxiaohao/buck,justinmuller/buck,pwz3n0/buck,lukw00/buck,dushmis/buck,brettwooldridge/buck,hgl888/buck,grumpyjames/buck,siddhartharay007/buck,vine/buck,mikekap/buck,robbertvanginkel/buck,zpao/buck,pwz3n0/buck,rhencke/buck,dpursehouse/buck,facebook/buck,hgl888/buck,Addepar/buck,mikekap/buck,brettwooldridge/buck,mogers/buck,OkBuilds/buck,pwz3n0/buck,OkBuilds/buck,clonetwin26/buck,janicduplessis/buck,pwz3n0/buck,saleeh93/buck-cutom,marcinkwiatkowski/buck,bocon13/buck,mread/buck,hgl888/buck,JoelMarcey/buck,hgl888/buck,LegNeato/buck,pwz3n0/buck,marcinkwiatkowski/buck,OkBuilds/buck,dpursehouse/buck,zhuxiaohao/buck,justinmuller/buck,shs96c/buck,rmaz/buck,pwz3n0/buck,davido/buck,janicduplessis/buck,Learn-Android-app/buck,illicitonion/buck,shs96c/buck,sdwilsh/buck,facebook/buck,JoelMarcey/buck,dushmis/buck,LegNeato/buck,MarkRunWu/buck,hgl888/buck,clonetwin26/buck,shybovycha/buck,dsyang/buck,sdwilsh/buck,daedric/buck,robbertvanginkel/buck,Dominator008/buck,tgummerer/buck,Dominator008/buck,justinmuller/buck,luiseduardohdbackup/buck,luiseduardohdbackup/buck,dushmis/buck,rowillia/buck,OkBuilds/buck,justinmuller/buck,k21/buck,rowillia/buck,sdwilsh/buck,janicduplessis/buck,hgl888/buck,illicitonion/buck,zhan-xiong/buck,zpao/buck,mread/buck,dpursehouse/buck,illicitonion/buck,robbertvanginkel/buck,Dominator008/buck,clonetwin26/buck,illicitonion/buck,robbertvanginkel/buck,mnuessler/buck,daedric/buck,zhan-xiong/buck,rowillia/buck,stuhood/buck,robbertvanginkel/buck,mnuessler/buck,ilya-klyuchnikov/buck,grumpyjames/buck,LegNeato/buck,robbertvanginkel/buck,MarkRunWu/buck,darkforestzero/buck,facebook/buck,brettwooldridge/buck,mread/buck,grumpyjames/buck,zhuxiaohao/buck,sdwilsh/buck,rowillia/buck,mogers/buck,dsyang/buck,mogers/buck,Learn-Android-app/buck,grumpyjames/buck,dpursehouse/buck,davido/buck,siddhartharay007/buck,raviagarwal7/buck,shybovycha/buck,Distrotech/buck,marcinkwiatkowski/buck,JoelMarcey/buck,darkforestzero/buck,romanoid/buck,daedric/buck,darkforestzero/buck,tgummerer/buck,SeleniumHQ/buck,zhan-xiong/buck,clonetwin26/buck,Addepar/buck,tgummerer/buck,hgl888/buck,clonetwin26/buck,dsyang/buck,saleeh93/buck-cutom,vine/buck,rowillia/buck,shs96c/buck,darkforestzero/buck,stuhood/buck,sdwilsh/buck,raviagarwal7/buck,brettwooldridge/buck,tgummerer/buck,daedric/buck,mikekap/buck,marcinkwiatkowski/buck,dpursehouse/buck,Addepar/buck,janicduplessis/buck,Addepar/buck,davido/buck,artiya4u/buck,zpao/buck,janicduplessis/buck,Learn-Android-app/buck,Dominator008/buck,shybovycha/buck,pwz3n0/buck,rmaz/buck,rmaz/buck,Distrotech/buck,vschs007/buck,Distrotech/buck,marcinkwiatkowski/buck,vschs007/buck,davido/buck,shybovycha/buck,stuhood/buck,luiseduardohdbackup/buck,sdwilsh/buck,saleeh93/buck-cutom,brettwooldridge/buck,Addepar/buck,liuyang-li/buck,brettwooldridge/buck,artiya4u/buck,LegNeato/buck,zhan-xiong/buck,Heart2009/buck,romanoid/buck,zhuxiaohao/buck,OkBuilds/buck,lukw00/buck,shs96c/buck,brettwooldridge/buck,robbertvanginkel/buck,clonetwin26/buck,Heart2009/buck,dsyang/buck,Distrotech/buck,shs96c/buck,grumpyjames/buck,rhencke/buck,marcinkwiatkowski/buck,hgl888/buck,ilya-klyuchnikov/buck,1yvT0s/buck,kageiit/buck,ilya-klyuchnikov/buck,artiya4u/buck,ilya-klyuchnikov/buck,sdwilsh/buck,daedric/buck,saleeh93/buck-cutom,luiseduardohdbackup/buck,dushmis/buck,1yvT0s/buck,k21/buck,zhan-xiong/buck,kageiit/buck,rowillia/buck,MarkRunWu/buck,robbertvanginkel/buck,marcinkwiatkowski/buck,neonichu/buck,Learn-Android-app/buck,SeleniumHQ/buck,rhencke/buck,1yvT0s/buck,grumpyjames/buck,nguyentruongtho/buck,marcinkwiatkowski/buck,Dominator008/buck,JoelMarcey/buck,stuhood/buck,Learn-Android-app/buck,janicduplessis/buck,Heart2009/buck,vschs007/buck,pwz3n0/buck,stuhood/buck,SeleniumHQ/buck,romanoid/buck,marcinkwiatkowski/buck,rhencke/buck,shs96c/buck,zhuxiaohao/buck,k21/buck,stuhood/buck,mread/buck,davido/buck,darkforestzero/buck,rmaz/buck,romanoid/buck,artiya4u/buck,neonichu/buck,stuhood/buck,Dominator008/buck,siddhartharay007/buck,shybovycha/buck,neonichu/buck,neonichu/buck,rmaz/buck,facebook/buck,siddhartharay007/buck,ilya-klyuchnikov/buck,zhan-xiong/buck,Addepar/buck,bocon13/buck,dushmis/buck,Addepar/buck,mogers/buck,SeleniumHQ/buck,lukw00/buck,Dominator008/buck,justinmuller/buck,mnuessler/buck,grumpyjames/buck,lukw00/buck,liuyang-li/buck,robbertvanginkel/buck,dpursehouse/buck,shybovycha/buck,clonetwin26/buck,vschs007/buck,OkBuilds/buck,kageiit/buck,raviagarwal7/buck,Heart2009/buck,raviagarwal7/buck,zhan-xiong/buck,brettwooldridge/buck,mikekap/buck,shybovycha/buck,Learn-Android-app/buck,tgummerer/buck,1yvT0s/buck,Distrotech/buck,darkforestzero/buck,artiya4u/buck,luiseduardohdbackup/buck,k21/buck,mikekap/buck,grumpyjames/buck,lukw00/buck,lukw00/buck,OkBuilds/buck,shybovycha/buck,raviagarwal7/buck,zhuxiaohao/buck,mogers/buck,rmaz/buck,Heart2009/buck,stuhood/buck,romanoid/buck,nguyentruongtho/buck,tgummerer/buck,marcinkwiatkowski/buck,daedric/buck,daedric/buck,luiseduardohdbackup/buck,vschs007/buck,zhan-xiong/buck,romanoid/buck,Distrotech/buck,zhan-xiong/buck,ilya-klyuchnikov/buck,Distrotech/buck,brettwooldridge/buck,vine/buck,ilya-klyuchnikov/buck,dsyang/buck,Heart2009/buck,mogers/buck,daedric/buck,ilya-klyuchnikov/buck,LegNeato/buck,zpao/buck,vschs007/buck,SeleniumHQ/buck,bocon13/buck,kageiit/buck,bocon13/buck,Learn-Android-app/buck,ilya-klyuchnikov/buck,vine/buck,SeleniumHQ/buck,artiya4u/buck,Dominator008/buck,LegNeato/buck,raviagarwal7/buck,illicitonion/buck,rmaz/buck,Dominator008/buck,robbertvanginkel/buck,dushmis/buck,LegNeato/buck,justinmuller/buck,Addepar/buck,SeleniumHQ/buck,darkforestzero/buck,kageiit/buck,Addepar/buck,zhan-xiong/buck,marcinkwiatkowski/buck,facebook/buck,OkBuilds/buck,clonetwin26/buck,Addepar/buck,k21/buck,janicduplessis/buck,OkBuilds/buck,neonichu/buck,mnuessler/buck,1yvT0s/buck,romanoid/buck,robbertvanginkel/buck,darkforestzero/buck,grumpyjames/buck