Revert "Move optimization branch of `frozen` upward."

This reverts commit 9a782695a6becfb108fbe6d92bc81114c7a1074e.