Refactored twitter repository