Remove legacy code and fixed asset manager.