Refactor the URL building method for Arquillian tests.