refactoring route reverse module.