move a function from a script back into the compactness module, and use symmetries to avoid redundant conformations