Refactored long if else block in Location's address() method by using strategy pattern