In the OP:
But for the magpies, there was an additional layer of intrigue; not only were the birds using the spikes to build nests, but it’s possible they were also employing the devices for their intended purpose—to ward off other birds. “It’s a very natural behavior,” Hiemstra says. “We think these spikes are for nest defense."