Replace assertion chains with static calls