Remove a confusing use of a static method.

No functionality change.