Move function from AwsPortal::Applicatoin class to module AwsPortal::EC2.