Rewrite address string formatter to use a generic currying function.