Text diff implementation cleanup.