[FaceRest] Move parseFormatType() from FaceRest to RestMessage