Even languages with heavy-weight MOPs do not offer a programming interface to unapply/uncompose, the reverse of:
https://metacpan.org/dist/Moose/source/lib/Moose/Meta/Role/A...
https://github.com/rakudo/rakudo/blob/master/src/Perl6/Metam...
Reading the source codes, I think this is due to no one yet having requested the ability to do so. To me it feels like implementing this is possible, but tedious.
The simple work-around for the problem would be to rebless the instance. Example:
class Structure {}
role Floatable {}
role Inhabitable {}
class Houseboat extends Structure with Floatable with Inhabitable {}
$hb = Houseboat new
$s = Structure new
$s apply Floatable, Inhabitable # houseboat at run-time
# stop swimming
### NYI
### $s unapply Floatable
# make a new house that cannot swim
$s1 = Structure new
$s1 apply Inhabitable
$s1 = $s rebless_into $s1