Remove dead code and reference to private method.