RS-61: split up the extension method so the onces that are web depended live in the web assembly