Refactoring to make tule URLs configurable