reorder some code to help reading diff
reorder some code to help reading diff

cristianoc/reason,chenglou/reason,facebook/reason,facebook/reason,cristianoc/reason,let-def/reason,cristianoc/reason,let-def/reason,facebook/reason,chenglou/reason,let-def/reason,chenglou/reason