Remove location name from query.