Remove redundant getName calls