Code clean-up, refactoring.

- Arranging constants in classes, removing repetition.
- Refactoring planet generator classes.