Remove some unneeded code after commit ab2c0fe2

Refs #11672