I would default $stability to null and then always override it with the package's stability only if the stability wasn't set explicitly.