Transforming service calls to a binary variable