Refactor: use getMessageRender instead of renderMessage