Unify all the res_ninit patches