I’m curious, what package is affected by this and what is the migration being generated?
You could write your own “makemigrations” command that wrappers around the system command. It could interrogate your application and build the appropriate command for the system function.