We should wrap the `loc` parsing in a separate helper or model method.