Refactoring Code for LocationDetail