LPS-43884 move logic into addresses_address.jspf to remove duplicate code