DRY code at navigation partial and application helper