Move checks depending on a LocationTrace into a method.