Recycle use of a local variable and remove what seems to be 2 extraneous URL objects.