Rules for migrating applications to the cloud