Changing Service to a union type