Refactor basic block instrumentation code
Refactor basic block instrumentation code

Summary: Refactoring and minor changes.

Reviewed By: thezhangwei, emma0303

Differential Revision: D9181248

fbshipit-source-id: c282569426df90abe3c6e3109b9f854b59fd7bcd

facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex