Only generate code for some methods on a service