Move some functionality to new Main module, tidy up Life module