Implement a way to delegate to an outer context
configure default format
make api default format configurable