The service_to_port function is used in a number of places, and could benefit from some centralization instead of being duplicated everywhere. Phil