Once we have our new schema in place we should have the means of cleaning repo environments generically given a properly configured library entry. Many of the new fields relevant to this behavior change were borrowed from owl-bot. Because of this we should port over the logic that application used for cleaning. owl-bot sources can be found here.
Once this logic is in place we can delete all references to the old clean container contract.
Blocked by: #772