Refactor data_loader into config module