Refactor list parsing code