Refactoring gettweets