Refactored the bulk loading operation into a reusable class.