Move URL operations to new class.