Revert "refactoring of FormatNumber to separate class + interface and file"

This reverts commit 1ac3670e477c0c2f86ab22978a3d8bd8c3bda1ad.