Move repeated code to removeAllChildren

What the title says.

- [x] Test plan: `grunt test`
Surely it must be faster to just discard the dummy node and create a new one each time?