pidl/ws: directly use `di` param instead of casting `private_data` member.