migrate services parser to factory class