Remove unused guard

Closes #20716.