Reduce duplication by using location_of helper.