Migrate spawn to private function, replace id with class on items