My bet would be to build anything from multiple independently generated pieces of AI code. Thus the software build from AI generated blocks by human would at least have protection on basis of the structure and work put into that.