Make get_primary_avatar_url available as function in project to avoid uncached redirects