flow: move pretty printer out of function

Signed-off-by: John Fastabend <john.fastabend@intel.com>