Move component base class to entity module