Add factory for class Service