Refactoring Share.py