Remove some old methods in the code.