Remove useless static method calls.