Remove structure of a contract and themes