Always use the same global deprecations hash

If functions are called directly instead of on the grim object, this
is needed to ensure we always use the same object to store deprecations.