refactor($$safeApply): remove it from the repo
test($safeApply): existence and apply/no apply depending on digest