Data Science refactoring