Remove unused function and duplicate class definition.