Generic repo cleanup