Move GetIntLen() to separate class (for testability).