Shekalim 8:6-7
Shekalim 8:6
Beis Shammai say that if meat from offerings of the highest degree of sanctity was rendered ritually unclean – whether by a primary or a secondary form of impurity, whether in the Temple courtyard or outside of it – everything is burned in the Temple courtyard except for something rendered unclean by a primary form of impurity outside Temple grounds (which is burned outside). Beis Hillel say that everything is burned outside the Temple except for something rendered unclean by a secondary form of impurity on Temple grounds (which is burned inside).
Shekalim 8:7
Rabbi Eliezer says that if something was rendered ritually unclean by a primary form of impurity, whether in the Temple courtyard or outside of it, it is burned outside. If something was rendered ritually unclean by a secondary form of impurity, whether in the Temple courtyard or outside of it, it is burned inside. Rabbi Akiva says that a thing is burned in the place where it was rendered impure (if inside, inside; if outside, outside).