This has to happen before the class namespace stripping.