For people who attended Duncan and my presentation “Refactoring Objects to Functions” at #CraftConf2025 (or watched it on live stream), here is a Git repo containing the starting point of the code and a description of the refactoring steps we took in the README.md file.

https://github.com/java-to-kotlin/craft-2025-presentation/

You will have to do your own bickering while refactoring the code...