Deploy refactored path logic