deprecation warning for Topology classes

The deprecation of the Topology classes is not working as I would expect it to - but no idea how to fix it.

If you look at https://gitlab.dune-project.org/core/dune-geometry/-/jobs/234387 for example you'll see that warnings are being thrown all over the place although nothing in dune-geometry should be using these classes anymore. As far as I can see any inclusion of types.hh leads to multiple warnings. Same in dune-localfunction (https://gitlab.dune-project.org/core/dune-localfunctions/-/jobs/233937) and in dune-fem the CI output is truncated due to it becoming too large.

Any idea how to fix this?