My intention is to reduce the duplication between the original application and its CloudStack variant, on the assumption that this might be the beginnings of something widely used or deployed in real places. Maintaining even two classes with copied code is a pain. If the purpose of these applications is merely to show them to other people, I guess the duplication doesn't matter so much.