Moved the code to run services to ServiceRunner.