Static batching and class reorganization