this is not how deprecation works. this code needs to be moved to a separate function as well. check the legacy_license function