Move constant to inline

Move the makeURL function call from the constants block to the single place it is used in the body of the code.