Refactoring: eliminate code duplication
Record URI transformations