Replaces static method calls.