Refactor: Reorder services in order of their dependencies.