Rename non-type template param `bit` to `N`.
Factor out extra_size().