Purge obsolete code