Reuse some code for fetching the message and move it to the github class.