Moved service registration into actor.