We extract the code from CSPService::AsyncOnChannelRedirect so that we can use it in a follow-up change. Differential Revision: https://phabricator.services.mozilla.com/D40965