Move the costume entity stuff out into a subclass.