Simplify some LINQ queries