Refactor common_password & aws_security_group into helpers