Remove R class dependency.