Refactoring and using url namespaces