mv formatter -> formatter_base
factory method for Formatter
instantiate Formatter outside TransportBase
extract flatten params from FormatterBase
min