This format is used more than once -- clearer to pull it into a method, with location as arg.