Cleans up special charm code.