The swarming behavior is caused by that first gene. It's conspec broke, so the bots now accelerate towards kin. The third gene will cause them to spin away from kin at the same time, so the net result is a poorman's swarming behavior.
There are a couple of swarming bots in the bestiary. How true to the original bot do you want to stay? The simplest tweaks would be to that 30 constant in the first gene. Set it to different values and observe the differences in behavior.