Refactoring route53 script