Removing duplication from text_message_helper and notification_helper