Replace List by IEnumerable when it's possible.