Refactoring Data Preprocessing