simplify typeToTemplate filter