Creating multiple modules from single module

Hello,
I am new to MLIR, I was wondering if it’s possible to do the following in MLIR. Thank you.

module {
   func.func @ func0_typeA {
   ...
   }
   func.func @ func1_typeB {
   ...
   }
   func.func @ func2_typeA {
   ...
   }
}

into

module {
   func.func @ func0_typeA {
   ...
   }
   func.func @ func2_typeA {
   ...
   }
}
module{
   func.func @ func1_typeB {
   ...
   }
}