route shortner refactoring