Refactors some methods of the Twitter repository. Tests are passing