Moving cloud code into 'cloud' module.