internal/v4: export Handler

When implementing the legacy API we want access to parts of the v4 implementation
and this provides that.