I should be able to refactor the service creation code into a public method.