Coordinated control of terminal differentiation and restriction of cellular plasticity