Put the code in separate method instead of inlining it
Put the code in separate method instead of inlining it

Test Plan: CI

Reviewed By: Coneko

fbshipit-source-id: 159d7ab

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