Replace Tem with Query
You are using a temporary variable to hold the result of an expression. Extract the expression into a method. Replace all references to the temp with the expression. The new method can then be used in other methods.
Sample:
Sample:
Before
After