Move list processing to separate class