Move serviceType, dependencies, and subscriberProtocol into class methods.

This is an API break, but I think it makes more sense this way.