core: avoid extern types in formatting infrastructure
#126956
Merged
extern types in formatting infrastructure
#126956