Replace prototype equals with non-prototype equivalent.