Refactoring extendable routes