Simple refactoring of CxxLibrary
Simple refactoring of CxxLibrary

Summary:
This refactoring simplifies the signature of `requireBuildRule` and exposes publicly the method that allows to create
build rules with a different flavor.

Test Plan: No functional changes, tests are passing

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