0021591: Building a Station on a planet the Warden is on should not force it to immediately retreat

Description

What is possible apparently is being able to destroy the AI Station in front of the Warden Fleet, quickly build your own with mass Engineer, which causes the Warden, even if it is overwhelming you, to immediately leave the battle because of that Station.

Feels pretty cheesy and a tad silly. So from Discord:

Either the Warden units on the planet, if they think they can win, should not retreat, until they either win, or start to lose the battle - Warden units not on the planet are not allowed to enter; this is a bit iffy and I imagine ow to code.

The other (from zeusalmighty), is for the Station to need to be 100% finished for a certain amount of time, say a minute, before the Warden will retreat from it.

Or any other solution, I suppose. This is seemingly allowing people to just ignore the Warden entirely.