Refactoring: moved Mode type to Pitch module aot