hook method for formatter mixins
move handling of flatten_params option to formatter factory