Refactored run block into a separate service
unit test for oauth1 case in run block
unit test for oauth1 authorization_code in run block