Refactored batch create action