remove legacy code from local repository