Prepatory work for storing thread IDs for notifications and receipts.