Enable static polymorphism where safe.

Reviewed By: @jwatzman

Differential Revision: D1568599