Put flattenable template disabling under define