Move more common Mojo code