Avoid using deprecated after_static_dispatch.