Revert "Make UserAgent implementation more version agnostic"

This reverts commit ab5978a205a298cc46bb251271678900ff4e6886.