This copy/paste seems to be necessary, but I think the general ```WebContext``` hierarchy could be improved, not in this pull request though.