Remove outdated codes