Only generate code for some methods on a service

@danrice-square @loganj 

I can't imagine too many people will have large `typesToEmit` sets.  It's probably fine.