Removed unnecessary method from dynamic class generation