I have a young hen who insisted on laying her eggs over the fence in the neighbor's yard. I collected them but this didn't dissuade her each time she returned and found the nest empty.
I've put her and her eggs in a large dog cage in the hopes she will sit on the eggs. She appears to be doing this as she is supposed to. The reason I went to this trouble is because she laid a clutch, again in an inappropriate place, and I had to remove them and put them in the coop. She never sat on the eggs in the coop and became depressed about that her clutch has disappeared. REALLY!