Cleanup many linq related operations.