Below is my linq code and it works. My question is how I can "reuse" those part new ContactResponse, and new AddressResponse in a function to reuse it in another query?

```
var queryset = (
            from a in _repoWrapper.Workshop.FindAll()
            where (a.IsActive == true && a.Entity.EntityType.Code == Global.EntityTypeServiceCenterCode)
            select new ServiceCenterResponse
            {
                Id = a.Id,
                Name = a.Name,
                EntityId = a.EntityId,
                Contacts = a.WorkshopContacts.Select(p => new ContactResponse
                {
                    Id = p.Contact.Id,
                    Type = p.Contact.ContactType.Description,
                    Code = p.Contact.ContactType.Code,
                    Value = p.Contact.Value
                }).ToList(),
                Addresses = a.WorkshopAddresses.Select(p => new AddressResponse
                {
                    Id = p.Address.Id,
                    AddressType = p.Address.AddressType.Code,
                    StreetLine1 = p.Address.StreetLine1,
                    StreetLine2 = p.Address.StreetLine2,
                    City = p.Address.City,
                    State = p.Address.State,
                    PostCode = p.Address.PostCode,
                    Country = p.Address.Country,
                    Longitude = p.Address.Longitude,
                    Latitude = p.Address.Latitude,
                    Others = p.Address.Others
                }).ToList()
            }
        );

```