Store service class names as parameter

We have our own `ThreadCountersListener` and we can easily override the existing class name with this change.