add Factory.php to handle all type

Factory.php receive $service and $method and call the method, fix the data.