Rewrote a LINQ line to use extension syntax.