It would be more natural to write this as `action = addition? "adding" : "removing"`, or better, just make the parameter for `modify_dns` be a string: either "adding" or "removing."