Move common Mojo code