Refactor routes/navigation.