[PATCH v3 20/25] fwd_rule: Move forwarding rule text formatting to common code