pf: deduplicate code
In pf_translate() the TCP, UDP and SCTP cases were identical. Deduplicate them.
Sponsored by: Rubicon Communications, LLC ("Netgate")