Generalize YExpansion