Refactor ShakespeareAnalyzer#read_lines