DRY the address logic