Minor clean-up to SDNode factory.