Friend, this is hardcoded. It means it can't be modded, which is what the EB team is trying to do.
Besides, the M2 AI is famous for its stupidity. So, getting it to do smart stuff is nearly impossible.