Code dedup, deft user_agent