Removed dead code, added notes on how to improve library migration.