Shekalim8: 6
בְּשַׂר קָדְשֵׁי קָדָשִׁים שֶׁנִּטְמָא, בֵּין בְּאַב הַטֻּמְאָה בֵּין בִּוְלַד הַטֻּמְאָה, בֵּין בִּפְנִים, בֵּין בַּחוּץ, בֵּית שַׁמַּאי אוֹמְרִים: הַכֹּל יִשָּׂרֵף בִּפְנִים, חוּץ מִשֶּׁנִּטְמָא בְאַב הַטֻּמְאָה בַחוּץ.  וּבֵית הִלֵּל אוֹמְרִים: הַכֹּל יִשָּׂרֵף בַּחוּץ, חוּץ מִשֶּׁנִּטְמָא בִוְלַד הַטֻּמְאָה בִּפְנִים.
Meat of the most holy offerings which became contaminated, whether through [contact with] a primary tumah or a second-ary tumah, whether inside or outside [the Temple Courtyard], Beis Shammai say: Everything should be burnt inside [the Courtyard], except that which was contaminated by a primary tumah outside.  Beis Hillel say: Everything should be burned outside, except that which was contaminated by a secondary tumah inside.