Best way to define a service