Use parameters to make service definition flexible.

So now we're able to redefine services with our own classes.