otherwise, what about putting this trick in a parent parent template ?

so there is only one place where we have to modify it.