Move urlRoot to class method