Refactor ticker line creation.

Move to menu_common. Can be reused.