Make factories and codes non-copyable