Refactor lid set manipuation to concuerror_lid module