Extract twitter logic to class