Use the Symfony Request object in the Backend URL.

This commit removes some functionality that already exists in the
Symfony Request object.