Replacing deprecated Manifest usage with ClassTag implementation