 Joss planed his episodes seasons in advance and there is a possible  allusion to Spike in this episode. Xander says "drive it through my  head like a railroad spike" which is how Spike killed the people who  mocked his poetry