Reorganize the code so the services control their own models.

Refs: #2