Refactor twitter methods into module