Refactoring GenerateSampleData to a module