Remove dead code following PowerShell refactoring (2109277)