Refactored linq expression.