Refactors the response handling logic on the twitter repository and adds configuration to service provider