Replace static references to class with self keyword.