Your approach works, with the risk of writing to _schemas in production. If you're on Confluent, schema linking would be the blessed path https://www.confluent.io/blog/easy-data-migration-with-schema-linking/
_schemas