Cleaning up Motif resources