Refactor the thrift kill switch
Refactor the thrift kill switch

Summary:
The thrift kill switch will not affect authorization. Some code
refactoring for the same.

Test Plan: Ran the unit tests.

Reviewed By: davejwatson@fb.com

FB internal diff: D1294589


uber/fbthrift,raphaelamorim/fbthrift,jesboat/fbthrift,soumith/fbthrift,getyourguide/fbthrift,raphaelamorim/fbthrift,HankFaan/fbthrift,facebook/fbthrift,SergeyMakarenko/fbthrift,kangkot/fbthrift,sinjar666/fbthrift,getyourguide/fbthrift,guker/fbthrift,project-zerus/fbthrift,uber/fbthrift,fengshao0907/fbthrift,Orvid/fbthrift,LinusU/fbthrift,Orvid/fbthrift,HankFaan/fbthrift,getyourguide/fbthrift,project-zerus/fbthrift,project-zerus/fbthrift,guker/fbthrift,facebook/fbthrift,maxwell-demon/fbthrift,soumith/fbthrift,SergeyMakarenko/fbthrift,LinusU/fbthrift,getyourguide/fbthrift,SergeyMakarenko/fbthrift,fengshao0907/fbthrift,LinusU/fbthrift,HankFaan/fbthrift,project-zerus/fbthrift,project-zerus/fbthrift,jesboat/fbthrift,maxwell-demon/fbthrift,raphaelamorim/fbthrift,HankFaan/fbthrift,fengshao0907/fbthrift,kangkot/fbthrift,Orvid/fbthrift,guker/fbthrift,jesboat/fbthrift,sinjar666/fbthrift,maxwell-demon/fbthrift,project-zerus/fbthrift,SergeyMakarenko/fbthrift,HankFaan/fbthrift,chjp2046/fbthrift,soumith/fbthrift,facebook/fbthrift,raphaelamorim/fbthrift,project-zerus/fbthrift,sinjar666/fbthrift,chjp2046/fbthrift,Orvid/fbthrift,kangkot/fbthrift,uber/fbthrift,project-zerus/fbthrift,LinusU/fbthrift,guker/fbthrift,sinjar666/fbthrift,chjp2046/fbthrift,raphaelamorim/fbthrift,jesboat/fbthrift,LinusU/fbthrift,guker/fbthrift,raphaelamorim/fbthrift,kangkot/fbthrift,chjp2046/fbthrift,facebook/fbthrift,SergeyMakarenko/fbthrift,LinusU/fbthrift,jesboat/fbthrift,HankFaan/fbthrift,maxwell-demon/fbthrift,getyourguide/fbthrift,jesboat/fbthrift,getyourguide/fbthrift,soumith/fbthrift,sinjar666/fbthrift,sinjar666/fbthrift,soumith/fbthrift,project-zerus/fbthrift,jesboat/fbthrift,uber/fbthrift,project-zerus/fbthrift,getyourguide/fbthrift,chjp2046/fbthrift,HankFaan/fbthrift,guker/fbthrift,raphaelamorim/fbthrift,getyourguide/fbthrift,maxwell-demon/fbthrift,jesboat/fbthrift,fengshao0907/fbthrift,raphaelamorim/fbthrift,chjp2046/fbthrift,jesboat/fbthrift,soumith/fbthrift,uber/fbthrift,LinusU/fbthrift,maxwell-demon/fbthrift,kangkot/fbthrift,uber/fbthrift,SergeyMakarenko/fbthrift,project-zerus/fbthrift,HankFaan/fbthrift,jesboat/fbthrift,SergeyMakarenko/fbthrift,maxwell-demon/fbthrift,Orvid/fbthrift,raphaelamorim/fbthrift,LinusU/fbthrift,facebook/fbthrift,HankFaan/fbthrift,chjp2046/fbthrift,chjp2046/fbthrift,sinjar666/fbthrift,maxwell-demon/fbthrift,guker/fbthrift,kangkot/fbthrift,fengshao0907/fbthrift,guker/fbthrift,uber/fbthrift,kangkot/fbthrift,fengshao0907/fbthrift,LinusU/fbthrift,raphaelamorim/fbthrift,raphaelamorim/fbthrift,Orvid/fbthrift,guker/fbthrift,uber/fbthrift,Orvid/fbthrift,LinusU/fbthrift,uber/fbthrift,chjp2046/fbthrift,soumith/fbthrift,sinjar666/fbthrift,HankFaan/fbthrift,HankFaan/fbthrift,facebook/fbthrift,getyourguide/fbthrift,SergeyMakarenko/fbthrift,SergeyMakarenko/fbthrift,sinjar666/fbthrift,Orvid/fbthrift,maxwell-demon/fbthrift,LinusU/fbthrift,fengshao0907/fbthrift,kangkot/fbthrift,fengshao0907/fbthrift,sinjar666/fbthrift,kangkot/fbthrift,sinjar666/fbthrift,fengshao0907/fbthrift,getyourguide/fbthrift,getyourguide/fbthrift,chjp2046/fbthrift,uber/fbthrift,maxwell-demon/fbthrift,kangkot/fbthrift,Orvid/fbthrift,facebook/fbthrift,jesboat/fbthrift,facebook/fbthrift,guker/fbthrift,kangkot/fbthrift,getyourguide/fbthrift,fengshao0907/fbthrift,SergeyMakarenko/fbthrift,soumith/fbthrift,soumith/fbthrift,guker/fbthrift,SergeyMakarenko/fbthrift,chjp2046/fbthrift,Orvid/fbthrift,soumith/fbthrift,soumith/fbthrift,SergeyMakarenko/fbthrift,maxwell-demon/fbthrift,facebook/fbthrift,Orvid/fbthrift,uber/fbthrift,chjp2046/fbthrift,project-zerus/fbthrift,fengshao0907/fbthrift,jesboat/fbthrift,uber/fbthrift