Refactor getNewMessageData to use Util class
Refactor getNewMessagesWithTargetUser to use Util class