Strictification of Weakly Stable Type-Theoretic Structures Using Generic Contexts