Gradually rewrite [code with side effects](https://github.com/homalg-project/HigherHomologicalAlgebra/blob/0120d2a2ee5e14943cc41a2e9bed246b3f29fe35/ToolsForHigherHomologicalAlgebra/gap/Functors.gi#L528).