Refactoring the share creation process.