Major refactoring of symmetry package.
More major refacotring.