If the user-agent module is removed from sdk, so can this function.