Removal of compat types and validate_legacy calls