Replace direct instance variable accesses with getter methods.