Return service type from factory.