Refactored the code that determines if the alt-addresses table should be shown.