formatter: fix usage of registry by output formats