Extract retweet process into its own function