Container created at run time Style not removed.

I’ve noticed that styles for containers and dialogs are not removed when you set them to Nil

When you create another one a new style is added, leaving you with a redundant one.

Is this the expected behaviour?