Creates a cleanup script for oa issue #311.