generalisation of formatter tasks.

Signed-off-by: dvorkinista <villain@noironetworks.com>