Only register traits if they arn't registered.