Split service and client code to the best of my understanding.