Replace dotted property accessor with method calls