The free software tool nLite can be used to customize an XP installation. It isn’t supported by Microsoft, but neither is XP. It is possible to remove Internet Explorer or networking components from an installation. Sometimes there is no need for the XP machine to ever connect to a network. This is particularly true when XP is used to host software used to run a piece of specialized industrial or medical equipment that requires vendor software that runs only on XP. Or maybe your application needs to connect to a network printer but not surf the web.
I have used nLite and was pleased with the results. When I used it to customize XP builds for restricted use, I would remove the games. This reduces the temptation for users to use the XP machine for anything other than its intended use.
I recommend that people move off of XP. But I do understand that isn’t feasible for everybody. For those who continue to use XP, nLite might provide a means to reduce the attack surface area of an XP installation. Using an unsupported tool to remove components of an operating system of course introduces new risks of possibly removing something that is needed. Test thoroughly and retest.