Removes redundant theme.