Shekalim8: 7
רַבִּי אֱלִיעֶזֶר אוֹמֵר: אֶת שֶׁנִּטְמָא בְאַב הַטֻּמְאָה, בֵּין בִּפְנִים בֵּין בַּחוּץ, יִשָּׂרֵף בַּחוּץ; וְאֶת שֶׁנִּטְמָא בִוְלַד הַטֻּמְאָה, בֵּין בִּפְנִים בֵּין בַּחוּץ, יִשָּׂרֵף בִּפְנִים.  רַבִּי עֲקִיבָא אוֹמֵר: מְקוֹם טֻמְאָתוֹ שָׁם שְׂרֵפָתוֹ.
R’ Eliezer says: That which was contaminated by a primary tumah, whether inside or outside, should be burned outside; but that which was contaminated by a secondary tumah, whether inside or outside, should be burned inside.  R’ Akiva says: Wherever it became contaminated, there it is burned.