extract duplicate message id's into constants