Deduplicate tweet handling code

Deduplicate tweet handling code using partial function application.