Added factories for members and cells that only create a single object for each unique thing, refactored canonicalization code.