Unnecessary object instantiation removed.

#3767
Thanks to @cmuramoto for pointing this out!