Refactor use of web client and instead use MVC Pipeline