Share tweet rendering code between functions