Cleaning up logic for plugging a post on Twitter