Move the tamed code into the spawning function for horses.