Added homemade traits utility to simplify ship component code