Removed deprectated static method call.

Even though the line is commented out, it causes an error in smooth migration.