An improved way to define service ports.