DRY up ApplicationTopNavHelper

This PR refactors duplicated code in ApplicationTopNavHelper into `top_nav_render`, DRY-ing up the module.