Adds option to remove versions when origin document is removed