Remove some dead code that has not been used since 2010.