Remove depricated code.