rta: drop local `is_valid_type` and use `is_legal_in` from `model`